<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>频道栏目列表 -- Powered by CentIMS {$core_version}</title>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>
	</head>
	<body>
		<div class="workspace">
			<ul class="nav nav-tabs">
				<li>&nbsp;&nbsp;</li>	
			    <li class="active"><a href="#"><i class="icon-folder-open"></i>分类管理</a></li>
			    <li><a href="./?Ctlr=AddCategory"><i class="icon-plus"></i>新增分类</a></li>
		    </ul>
		    <table id="cat-list" class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th class="col_chk"><input type="checkbox"/></th>
						<th class="w30 txt-ac">CID</th>
						<th class="w80 txt-ac">类型</th>
						<th class="w300">分类名</th>
						<th class="w100">引用名</th>
						<th class="w80">绑定域名</th>
						<th class="w200">目录</th>						
						<th class="wa">URL模式</th>						
						<th class="w50">排序</th>
						<th class="w150 txt-ac">操作</th>
					</tr>
				</thead>
				<tbody>
					{foreach from=$items item=item}
					<tr class="{$item.tree_clz}" id="{$item.tree_id}">
						<td class="col_chk"><input type="checkbox" value="{$item.cid}"/></td>
						<td class="txt-ac">{$item.cid}</td>
						<td class="txt-ac">{$item.type|status:$cate_types}</td>
						<td class="tree-handl">
							{if $item.page_id}
							<a href="{$item|url}?preview" target="_blank" title="点击预览">{$item.title}</a>
							{else}
							{$item.title}
							{/if}
						</td>
						<td>{$item.name}</td>
						<td>{if $item.home}<strong>{$item.bind}</strong>{else}{$item.bind}{/if}</td>
						<td>{$item.url_path}</td>
						<td>{$item.url_pattern}</td>						
						<td><input type="text" rel="{$item.cid}" class="small cate-sort" maxlength="3" value="{$item.sort}"></td>
						<td class="tools">{'get_category_operation'|fire:$item}</td>
					</tr>
					{foreachelse}
					<tr>
						<td colspan="10" class="txt-ac">无记录</td>
					</tr>
					{/foreach}
				</tbody>
			</table>    	
		</div>
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>
		<script type="text/javascript" src="{'common.js'|shared}"></script>		
		<script type="text/javascript" src="category.js"></script>
	</body>
</html>
